<?php

use app\services\ModelService;

return [
    'goods.search' => [
        [\app\event\Goods::class, 'addSearchHistory']
    ],
    'music.search' => [
        [\app\event\Music::class, 'addSearchHistory']
    ],
    'music-menu.search' => [
        [\app\event\Music::class, 'addSearchMenuHistory']
    ],
    'user.register' => [
        [ModelService::class, 'bindParent'],
    ],
    'gift-order.after-pay' => [
        [ModelService::class, 'setUserGoodsId'],
        [ModelService::class, 'giveFreezeIntegral'],
        [ModelService::class, 'releaseBorrowIntegral'],
        [ModelService::class, 'profitSharing'],
        [ModelService::class, 'updateTeamInfo'],
        [ModelService::class, 'upgradeVip'],
    ],
    'activity-order.after-pay' => [
        [ModelService::class, 'activityOrder']
    ],
    'normal-order.after-pay' => [
        [ModelService::class, 'normalOrderProfitSharing']
    ],
    'order.after-pay' => [
        [\app\services\StockService::class, 'reduce'],
        [\app\services\GoodsService::class, 'addSaleCount']
    ],
    'gift-order.before-create' => [
        [ModelService::class, 'checkCanCreateOrder']
    ]
];
